'use strict';

/**
 * @param {Egg.Application} app - egg application
 */

module.exports = app => {
    const { router, controller } = app;
    router.resources('posts', '/api/posts', controller.posts);
    router.resources('news', '/api/news', controller.v1.users); // app/controller/v1/users.js
  };